package com.aura.bookshop.service;

import org.apache.ibatis.annotations.Param;
import com.aura.bookshop.entity.Teacher;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jinbanglong
 * @since 2020-09-09
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 自定义sql分页
     * @param page
     * @param queryWrapper 看这里看这里，如果自定义的方法中需要用到wrapper查询条件，需要这样写
     * @return
     */
    IPage<Teacher> selectMyPage(IPage<Teacher> page, Wrapper<Teacher> queryWrapper);

}
